package com.yc.spring.test.ioc;

import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Demo {
    public static void main(String[] args) {
        System.setProperty("webdriver.gecko.driver","C:\\Program Files\\Mozilla Firefox\\geckodriver.exe");
        System.setProperty("webdriver.firefox.bin","C:\\Program Files\\Mozilla Firefox\\firefox.exe");
        WebDriver driver=new FirefoxDriver();
        String testUrl="http://www.baidu.com";
        driver.get(testUrl);
        // driver.quit();
    }
}
